package com.reformer.commons.dto;

import com.alibaba.fastjson.JSON;

public class RequestInfo<T> {

    private String id;
    private String ver;
    private String dev;
    private String cmd;
    private T data;

    public RequestInfo() {
        super();
    }

    public RequestInfo(String id, String ver, String dev, String cmd, T data) {
        super();
        this.id = id;
        this.ver = ver;
        this.dev = dev;
        this.cmd = cmd;
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public String getDev() {
        return dev;
    }

    public void setDev(String dev) {
        this.dev = dev;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
